<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
</head>
<body>
  <div th:text="${username}"></div>
  <p th:text="${#dates.format(nowDate,'yyyy/MM/dd HH:mm:ss SSS')}" />
  <img th:src="@{/static/images/42sister.jpg}"  alt="图片"/>
</body>

<script th:inline="javascript">
  // var password = [[${password}]];
  // alert(password);
</script>

</html>